//导入request.js请求工具
import request from '@/utils/request'
// 打卡接口
export const handleClockPageService = (params) => {
  return request.post('/user/attendance', params)
}

export const getTodayRecords = async () => {
  return request.post('/user/attendance/record')
}
//获取打卡时间
export const getWorkTimeConfigService = () => {
  return request.get('/user/attendance/worktimeconfig')
}

// 获取考勤记录接口，支持分页查询
export const getAttendanceRecordsService = (page, pageSize) => {
  return request.get(`/user/attendance/records?page=${page}&pageSize=${pageSize}`)
}